package net.pimpas.web.jsf.components.validators.regex;

import javax.faces.context.FacesContext;

import net.pimpas.resourcebundle.serviceprovider.ResourceBundleServiceProvider;
import net.pimpas.resourcebundle.serviceprovider.ResourceBundleServiceProviderFactoryImpl;
import net.pimpas.web.jsf.components.validators.PimpasValidatorTag;
import net.pimpas.web.jsf.components.validators.exception.PimpasValidatorTagException;

public class RegexValidatorTag extends PimpasValidatorTag<RegexValidator> {
	
	private static final ResourceBundleServiceProvider bundle = 
		ResourceBundleServiceProviderFactoryImpl.getResourceBundleServiceProvider();

	private static final long serialVersionUID = 1L;
	
	@Override
	protected void validate(FacesContext context, RegexValidator validator) throws PimpasValidatorTagException {
		
	}
	
	@Override
	public String getValidatorID() {
		return RegexValidator.VALIDATOR_ID;
	}
	
	public ResourceBundleServiceProvider getBundle( ) {
		return bundle;
	}
}